<%@include file="menu/util.jsp" %>
<%@page contentType="text/html; charset=iso-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <fmt:bundle basename="app">
        <head>
            <%@include file="menu/wizardTablessHeader.jsp" %>
            <script type="text/javascript">
                /* $.validator.setDefaults({
                    submitHandler: function() {
                       
                        var nom = $('#name').attr('value');
                        var desc = $('#description').attr('value');
                        var id = $('#frameId').attr('value');
                        var cbFramework = $('#cbFramework').attr('value');

                        if(id >= 0){
                            editFramework(id,nom,desc,cbFramework);
                        }else{
                            insertFramework(nom,desc);
                        }
                    }
                });

                $().ready(function() {
                    // validate the comment form when it is submitted
                    $("#newFramework").validate({
                        errorLabelContainer: $(".errorDiv"),
                        wrapper: "li"
                    });
                });*/
            </script>
            <c:set var="firstLicense" value="${requestScope.firstLicense}"/>
        </head>

        <body style="overflow:hidden;" >

            <form id="newLicense" action="newLicense.do" method="post">
                <div class="wizard" style="width:620px; height: 304px;">
                    <h1>
                        <c:choose>
                            <c:when test="${requestScope.firstLicense}">
                                Nueva Licencia
                            </c:when>
                            <c:otherwise>
                                Actualizar Licencia
                            </c:otherwise>
                        </c:choose>
                    </h1>
                    <div id="TabbedPanels1" class="TabbedPanels" style="width: 620px;">
                        <div class="TablessPanels">
                            <div class="TablessPanelContent" style="overflow:hidden;">
                                <div class="floatLeft boxWizard">
                                    <table>
                                        <c:if test="${!requestScope.firstLicense}">
                                            <tr>
                                                <td>Token anterior</td>
                                                <td>
                                                    <input class="required" type="password" title="<fmt:message key="error.framework.name"/>" id="currentToken" name="currentToken" />
                                                </td>
                                            </tr>
                                        </c:if>
                                        <tr>
                                            <td>Nuevo token</td>
                                            <td>
                                                <input class="required" type="password" title="<fmt:message key="error.framework.description"/>" id="newToken" name="newToken" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Licencias</td>
                                            <td>
                                                <input class="required" type="password" title="<fmt:message key="error.framework.description"/>" id="license" name="license" />
                                            </td>
                                        </tr>
                                        <tr><td colspan="2">
                                                <div class="errorDiv"></div>
                                            </td></tr>
                                    </table>
                                </div>
                                <div  class="floatLeft boxWizard">
                                </div>
                                <div class="clear"></div>
                            </div>
                        </div>
                    </div>
                    <div class="botonesWizard">
                        <input  name="send" type="submit" id="send" class="buttonTabbedBox" value="<fmt:message key="forms.send"/>" />
                        <input name="Reset" type="reset" class="buttonCancelTabbedBox" value="<fmt:message key="forms.cancel"/>" />
                    </div>
                    <div class="clear"></div>
                    <script type="text/javascript">
                        var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
                    </script>
                </div>
            </form>

        </body>
    </fmt:bundle>
</html>

